package interview.base;

public class InheritableThreadLocalDemo implements Runnable {
    @Override
    public void run() {
        try {
            Thread.sleep(30000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("do,,,,,");
    }

    public static void main(String[] args) {
        InheritableThreadLocalDemo inheritableThreadLocalDemo = new InheritableThreadLocalDemo();
        Thread thread  = new Thread(inheritableThreadLocalDemo);
        thread.run();
        System.out.println(Thread.activeCount());


        //inheritableThreadLocalDemo.run();

    }
}
